package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.user.UserBalanceRecord;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户余额记录表 Mapper 接口
 * </p>
 *
 * @author HZW
 * @since 2022-10-11
 */
public interface UserBalanceRecordDao extends BaseMapper<UserBalanceRecord> {


    /**
     * 根据用户id查询总的消费金额
     *
     * @param id
     * @return
     */
    BigDecimal getTotalMonetaryByUid(@Param("id") Integer id);
}
